﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace WPCloudPT.Model
{
    /// <summary>
    /// classes para serem lidar com os dados devolvidos em json
    /// </summary>
    [DataContract]
    public class InformacaoPastas
    {
        [DataMember(Name = "hash")]
        public string Hash { get; set; }

        [DataMember(Name = "rev")]
        public string Rev { get; set; }

        [DataMember(Name = "thumb_exists")]
        public bool ThumbExists { get; set; }

        [DataMember(Name = "bytes")]
        public int Bytes { get; set; }

        [DataMember(Name = "modified")]
        public DateTime? Modified { get; set; }

        [DataMember(Name = "bottom_cursor")]
        public string BottomCursor { get; set; }


        [DataMember(Name = "top_cursor")]
        public string TopCursor { get; set; }

        [DataMember(Name = "path")]
        public string Path { get; set; }

        [DataMember(Name = "is_dir")]
        public bool IsDir { get; set; }

        [DataMember(Name = "root")]
        public string Root { get; set; }

        [DataMember(Name = "contents")]
        public List<InformacaoFicheiros> ListaConteudos { get; set; }

        [DataMember(Name = "size")]
        public string Size { get; set; }
    }
}
